import 'package:native_toast/native_toast.dart';

import 'base_handler.dart';

class ToastHandler extends BaseHandler {

  @override
  String name = "showToast";

  @override
  void handler(dynamic data, dynamic responseCallback) async {
    String message =data['message'];
    //TODO 此插件只支持安卓，后续更换
    await NativeToast().makeText(
      message: message,
      duration: NativeToast.shortLength,
    );
  }
}